package top.zackyoung.bbs.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.zackyoung.bbs.mapper.FocusMapper;

/**
 * @author: ZackYoung
 * @time: 2020/6/16
 */
@Service
public class UserPublicService {
    @Autowired
    FocusMapper focusMapper;
    // 关注数
    public Integer queryFocusNum(String username) {
        Integer focusNum=null;
        if (username!=null){
            focusNum = focusMapper.queryFocusNum(username);
        }
        return focusNum;
    }
}
